import { herinRequist } from "../http.js";
const Prevention = {
	getCollectionList(data) {
		return herinRequist({ url: '/pc/change-notice-wait', method: 'GET', data, contentType:'application/json' });
	},
	getReportDetail(id) {
		return herinRequist({ url: '/pc/change-notice-report-detail', method: 'GET',data: { id }});
	},
	postNoticeReport(data){
		return herinRequist({ url: '/pc/change-notice-report', method: 'POST',data, contentType:'application/json'});
	},
	postNoticeCancel(data){
		return herinRequist( {url: '/pc/change-notice-cancel' ,method: 'POST',data, contentType:'application/json'});
	},
	postNoticeAudit(data){
		return herinRequist( { url:'/pc/change-notice-audit',method:'POST',data, contentType:'application/json'})
	},
	getNoticeHave(data){
		return herinRequist({url:'/pc/change-notice-have',method:'GET',data})
	},
	getAuditList(data){
		return herinRequist({url:'/pc/risk-audit-list',method:'GET',data})
	},
	getWarnDetail(id){
		return herinRequist({url:'/pc/risk-warning-detail',method:'GET',data:{id}})
	},
	postRiskAudit(data){
		return herinRequist({url:'/pc/risk-audit',method:'POST',data, contentType:'application/json'})
	},
	getGovernRank(quarter){
		return herinRequist({url:'/pc/clear-govern-rank',method:'GET',data:{quarter}})
	},
	getWarningList(data){
		return herinRequist({url:'/pc/risk-warning-list',method:'GET',data})
	},
	getRecordList(data){
		return herinRequist({url:'/pc/risk-record-list',method:'GET',data})
	},
	getWarnDetail(id){
		return herinRequist({url:'/pc/risk-warning-detail',method:'GET',data:{id}})
	},
	postRecordCancel(id){
		return herinRequist({url:'/pc/risk-record-cancel',method:'POST',data:{id}, contentType:'application/json'})
	},
	postWarnCreate(data){
		return herinRequist({url:'/pc/risk-warning-create',method:'POST',data, contentType:'application/json'})
	},
	getProgetReport(data){
		return herinRequist({url:'/pc/project-report-list',method:'GET',data})
	},
	getDetail(id){
		return herinRequist({url:'/pc/project-detail',method:'GET',data:{id}})
	},
	postProjectReport(data){
		return herinRequist({url:'/pc/project-report',method:'POST',data , contentType:'application/json'})
	},
	postReportCancell(data){
		return herinRequist({url:'/pc/project-report-cancel',method:'POST',data, contentType:'application/json'})
	},
	getDepartment(id,type){
		return herinRequist({url:'/admin/department',method:'GET', data: { id, type } , contentType:'application/json'})
	},
	getUser(id, level) {
			return herinRequist({ url: '/admin/user', method: 'GET', data: { id, level } , contentType:'application/json'});
	},
	getUserList(name) {
			return herinRequist({ url: '/admin/users-list', method: 'GET', data: { name }});
	},
	getProjectAuditList(data) {
			return herinRequist({ url: '/pc/project-audit-list', method: 'GET', data });
	},
	getProjectAuditUpdate(data) {
			return herinRequist({ url: '/pc/project-audit-update', method: 'POST', data , contentType:'application/json'});
	},
	getProjectAudit(data) {
			return herinRequist({ url: '/pc/project-audit', method: 'POST', data , contentType:'application/json'});
	},
	getPolicyChart(){
		return herinRequist({ url: '/pc/project-policy-chart', method: 'GET'});
	},
	getBidChart(){
		return herinRequist({ url: '/pc/project-bid-chart', method: 'GET'});
	},
	getGoodsChart(){
		return herinRequist({ url: '/pc/project-goods-chart', method: 'GET'});
	}
	
}

export default Prevention;
